/**============================================================================
 *
 * Author: luo1o1o1o 
 *
 * Last modified: 2021-07-01 11:56
 *
 * Description: 微博模型数据
 *
 ============================================================================**/

const seq = require('../seq')
const { INTEGER, STRING, TEXT } = require('../types')

const Blog = seq.define('blog', {
    userId: {
        type: INTEGER,
        allowNull: false,
        comment: '用户 ID',
    },
    content: {
        type: TEXT,
        allowNull: false,
        comment: '微博内容',
    },
    image: {
        type: STRING,
        comment: '图片地址',
    },
})

module.exports = Blog
